package modelimplementation

import (
	"time"
)

type WeeklySchedule struct {
}

func (ws *WeeklySchedule) IsPaydate(payDate time.Time) bool {
	return payDate.Weekday() == time.Friday
}

func (ws *WeeklySchedule) GetPayPeriodStartDate(payPeriodEndDate time.Time) time.Time {
	return payPeriodEndDate.AddDate(0 , 0 , -6)
}